package cn.rongdao.jrkabao.model.main.personal;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.ArrayList;

import cn.rongdao.jrkabao.bean.main.personal.PersonItemInfoBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/17
 */

public class PersonItemInfoModel extends BaseKaMaoModel {

    public static PersonItemInfoModel getInstance() {
        return getPresent(PersonItemInfoModel.class);
    }

    public void execute(Observer<ArrayList<PersonItemInfoBean>> observer) {
        addParamStrings("list_code", "kamao_mine_list");
        Observable<ArrayList<PersonItemInfoBean>> observable = mServletApi.getPersonItemInfo(mParams).map(new HttpFunction<ArrayList<PersonItemInfoBean>>());
        toSubscribe(observable, observer);
    }
}